package com.lizhongbao.cloud.configclient.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName ConfigClientController
 * @Description 测试从配置中心获取配置
 * @Author lizhongbao
 * @Date 2019/12/3 20:09
 * @Version 1.0
 **/
@RestController
public class ConfigClientController {

    @Value("${people.name}")
    String name;

    @GetMapping("/test")
    public String configClientTest(){
        return name;
    }
}
